<template>
  <div class="fns-dialogLg-component">
    <el-dialog
      :title="dialogLgData.title"
      :visible.sync="dialogLgData.dialogVisible"
      width="40%"
      :close-on-click-modal="false">
      <slot name="body"></slot>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogLgData.dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="submitForm">提 交</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
  export default {
    props: {
      dialogLgData: {
        title: {
          default: ''
        },
        dialogVisible: {
          default: false
        }
      }
    },
    computed: {
    },
    watch: {
    },
    components: {
    },
    data() {
      return {
      }
    },
    methods: {
      submitForm() {
        this.$emit('submitForm', this.dialogLgData.title)
      }
    }
  }
</script>

<style lang="scss">
  /*大号弹窗组件dialogLg*/
  .fns-dialogLg-component {
    .el-dialog {
      min-width: 780px;
      .el-form {
        max-height: 450px;
        overflow-y: auto;
        overflow-x: hidden;
      }
      .el-dialog__body{
        padding:10px 20px 10px 20px !important;
      }
      .el-select {
        width: 100%;
      }
    }
  }
</style>
